/********************************************************************
  Copyright by PCI, 2002-10-08
  File Name: db_ppm_price_desc_item_catalog.cxx
  Created Date: 2002-10-08 
  Author: Machine
  Version: 1.0 
  Last Version Date: 
  Version Date:
*******************************************************************/
/********************************************************************
  Copyright by PCI, 2002-10-08
  Class Name: CTable_PPM_PRICE_DESC_ITEM_CATALOG
  Created Date: 2002-10-08 
  Author: Machine
  Defined File: db_ppm_price_desc_item_catalog.hxx
  Last Version Date: 
  Version Date:
*******************************************************************/
#include "table_ppm.h" 

CTable_PPM_PRICE_DESC_ITEM_CATALOG::CTable_PPM_PRICE_DESC_ITEM_CATALOG( )
 :NPCRecordSet( )
{
  setTableName( "PPM_PRICE_DESC_ITEM_CATALOG" );
  prepareTable();
  prepareQuery();
 
  ID.setField( "ID", DATA_CHAR, 20, 1 );
  makeTableItem( ID );
  makeKeyItem( ID ); 
  NAME.setField( "NAME", DATA_CHAR, 512, 0 );
  makeTableItem( NAME );
  TYPE.setField( "TYPE", DATA_CHAR, 10, 0 );
  makeTableItem( TYPE );
  CREATE_DATE.setField( "CREATE_DATE", DATA_DATETIME, 7, 0 );
  makeTableItem( CREATE_DATE );
  MODIFY_DATE.setField( "MODIFY_DATE", DATA_DATETIME, 7, 0 );
  makeTableItem( MODIFY_DATE );
  STAFF.setField( "STAFF", DATA_CHAR, 20, 0 );
  makeTableItem( STAFF );
  STATE.setField( "STATE", DATA_CHAR, 6, 0 );
  makeTableItem( STATE );
  REMARK.setField( "REMARK", DATA_CHAR, 1000, 0 );
  makeTableItem( REMARK );
}


CTable_PPM_PRICE_DESC_ITEM_CATALOG::CTable_PPM_PRICE_DESC_ITEM_CATALOG( NPConnection& pcldb )
 :NPCRecordSet( pcldb )
{
  setTableName( "PPM_PRICE_DESC_ITEM_CATALOG" );
  prepareTable();
  prepareQuery();
 
  ID.setField( "ID", DATA_CHAR, 20, 1 );
  makeTableItem( ID );
  makeKeyItem( ID ); 
  NAME.setField( "NAME", DATA_CHAR, 512, 0 );
  makeTableItem( NAME );
  TYPE.setField( "TYPE", DATA_CHAR, 10, 0 );
  makeTableItem( TYPE );
  CREATE_DATE.setField( "CREATE_DATE", DATA_DATETIME, 7, 0 );
  makeTableItem( CREATE_DATE );
  MODIFY_DATE.setField( "MODIFY_DATE", DATA_DATETIME, 7, 0 );
  makeTableItem( MODIFY_DATE );
  STAFF.setField( "STAFF", DATA_CHAR, 20, 0 );
  makeTableItem( STAFF );
  STATE.setField( "STATE", DATA_CHAR, 6, 0 );
  makeTableItem( STATE );
  REMARK.setField( "REMARK", DATA_CHAR, 1000, 0 );
  makeTableItem( REMARK );
}

CTable_PPM_PRICE_DESC_ITEM_CATALOG::~CTable_PPM_PRICE_DESC_ITEM_CATALOG( )
{
    close();
}

